<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../Template/TemplateAccount.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="content">
        <p:fieldset legend="NEW TECHNOLOGY"> 
            <h:form>
                <p:dataList var="new" value="#{newsBean.allByNewType1}" type="none" paginator="true" rows="10" 
                            paginatorTemplate="{PreviousPageLink} {CurrentPageReport} {NextPageLink} {RowsPerPageDropdown}"
                            rowsPerPageTemplate="10,20,30">
                    <div style="height: 120px;background: whitesmoke;padding-top: 20px">
                        <div style="float: left;width: 100px;margin-right: 10px;margin-left: 10px">
                            <h:graphicImage url="./../Template/ImageNew/#{new.image}"/>
                        </div>
                        <div style="margin-left: 55px;margin-top: 20px">
                            <h:form>
                                <p:commandLink value="#{new.title}" action="#{newsBean.viewNew()}"
                                               style="font-size: 15px;font-weight: bolder;padding-left: 0px;padding-right: 5px;text-align: left;padding-top: 15px;height: 50px">
                                    <f:setPropertyActionListener value="#{new}" target="#{newsBean.selectNews}" />
                                </p:commandLink>
                            </h:form>
                            <br/>
                            <p:rating stars="10" style="padding-top: 35px" />
                        </div>
                    </div>
                </p:dataList>   
            </h:form>   
        </p:fieldset>
    </ui:define>

</ui:composition>
